package com.woniuxy.background.service.impl;

import com.woniuxy.background.dao.CtsMapper;
import com.woniuxy.background.pojo.Cts;
import com.woniuxy.background.service.CtsService;
import com.woniuxy.background.vo.CtsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CtsServiceImpl implements CtsService {

    @Autowired
    private CtsMapper ctsMapper;

    @Override
    public List<Cts> queryCtsByPage(Integer currentPage, Integer pageSize, CtsVO vo) {
        return ctsMapper.queryCtsByPage(currentPage,pageSize,vo);
    }

    @Override
    public Cts queryCtsByTid(int tid) {
        return ctsMapper.queryCtsByTid(tid);
    }

    @Override
    public int insertSelective(Cts record) {
        return ctsMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Cts record) {
        return ctsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer cid) {
        return ctsMapper.deleteByPrimaryKey(cid);

    }

    @Override
    public Cts selectByPrimaryKey(Integer cid) {
        return ctsMapper.selectByPrimaryKey(cid);
    }
}
